<style>
.right-arrow {
	background: url(images/select-to-right.png) no-repeat;
	width: 30px;
	height: 30px;
	
	cursor:pointer;
}
.left-arrow {
	background: url(images/select-to-left.png) no-repeat;
	width: 30px;
	height: 30px;
	
	cursor:pointer;
}
.disabled-right-arrow {
	background: url(images/disabled-right-arrow.png) no-repeat;
	width: 33px;
	height: 33px;
	margin-top: 30px;
}
th {
text-align: left!important;
}
.select-area {
margin: 10px;
border: inset 1px #cfcfcf;
float:left;
height: 600px;
overflow:scroll;
}
.left-title {
width: 400px;
text-align: center;
margin-top: 20px;
line-height: inherit;
}
.right-title {
float:right;
width: 400px;
text-align: center;
margin-top: 20px;
line-height: inherit;
}
.high-light{
background: #BDEC94 !important;
color: #000;
}
</style>
<script type="text/javascript" src="../php/js/lapdsthi.js"></script>
<script>
$(function() {

                $("#ngaythi").datepicker();
            });    
</script>
<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Sửa Danh Sách Thi</h3>
	</div>
	<!-- main content -->
	<div class="content-box-content">
	
	
<form action="../php/tochucthi/lapds_ajax.php?action=suads" method="POST" id="formnoidung" name="dulieu">
	<table>
	<tbody>
	<tr><td colspan="10" class="cangiua"><b>Hội đồng thi:</b> {$donvi} - <b>Mã số: </b>{$hdthi} <input type="hidden" id="mahoidong" name="mahoidong" value="{$hdthi}" />- <b>Ngành:</b> {$nganh} - <b>&nbsp;Môn thi: </b>{$monhoc} - <b>&nbsp;Học vụ: </b>{$hocvu}</td></tr>
	<input type="hidden" id="mctdt" value="{$mctdt}" />
	<input type="hidden" id="mamh" value="{$mamh}" />
	<input type="hidden" id="madv" value="{$madv}" />
	<input type="hidden" id="hocvu" value="{$hocvu}" />
	<tr>
		<td class="cangiua"><label for="ngaythi">Ngày thi</label>&nbsp;<input type="text" class="medium-input" id="ngaythi" name="ngaythi" value="{$date}" />
		<label for="cathi">&nbsp;&nbsp;Ca thi</label>&nbsp;
			<select name="cathi">
				{foreach from=$ds_cathi item=cathi}
					<option value="{$cathi->getmadm_ca()}" {if $cathi->getmadm_ca() eq $macathi}selected="selected"{/if}>{$cathi->getkhungthoigian()}</option>
				{/foreach}
			</select>
		
		
		
		<input type="hidden" name="push" id="push"  value="">
		<input type="hidden" name="pop" id="pop" value="">
		<input type="hidden" value='{$madsthi}' name="madsthi"/>
		<input class="button" type="submit" name="Luu" value="Sửa danh sách">
		</td>
	</tr>
	</tbody>
	</table>
		<div style="overflow:hidden;position: relative;">
		<div style="overflow: hidden;float: left;">
		<div class="left-title"><h3>Sinh viên chưa có trong DS ({$slsv1})</h3></div>
		<div style="padding: 0 8px;">
		<span><input type="text" id="quickselect" class="medium-input" value="Nhập số lượng chọn..." /><input class="button" id="quickselectbtn" type="button" value="Chọn" /></span>
		<span style="float:right">
		<select id="sdsfilter">
		<option value="00">Lọc theo ngày</option>
		{foreach from=$ngaylm item=lm}
			<option value="{$lm['ngaybatdau']}">{$lm['ngaybatdau']}</option>
		{/foreach}
		</select>
		</span>
		</div>
		<div class="select-area" id="sv-source">
		
        <table class="select-table">
        <tbody id="unselect-area">
			
			<tr class="alt-row">
				<th><input type="checkbox" value="" class="select-all" /></th>
				
				<th><b>Mã SV</b></th>

				<th><b>Tên SV</b></th>

				<th><b>Ngày sinh</b></th>



				<th><b>Lớp môn</b></th>
			</tr>
			{foreach from=$sinhvien item=sv}
			<tr>
				<td><input type="checkbox" value="{$sv['ma_dkm']}" class="sv-item" /></td>

				<td>{$sv['ma_sv']}</td>

				<td>{$sv['hoten_sv']}</td>

				<td>{$sv['ngaysinh_sv']}</td>



				<td>{$sv['ma_lopmon']}</td>
			</tr>
			{/foreach}
        </tbody>
		</table>
        </div>
		</div>
		
		<div>
		<div class="right-title"><h3>Sinh viên đang có trong DS ({$slsv2})</h3></div>
		<div style="position: absolute;left: 48%;margin-top: 300px;">
			<div id="right-select-btn" class="right-arrow"></div>
			<br />
			<div id="left-select-btn" class="left-arrow"></div>
		</div>
		<div class="select-area" id="sv-selected" style="float:right">
		
		<table class="select-table">
        <tbody id="selected">
			
			<tr class="alt-row">
				<th><input type="checkbox" value="" class="select-all" /></th>
				
				<th><b>Mã SV</b></th>

				<th><b>Tên SV</b></th>

				<th><b>Ngày sinh</b></th>



				<th><b>Lớp môn</b></th>
			</tr>
			{foreach from=$cursinhvien item=sv}
			<tr>
				<td><input type="checkbox" value="{$sv['ma_dkm']}" class="sv-item" /></td>

				<td>{$sv['ma_sv']}</td>

				<td>{$sv['hoten_sv']}</td>

				<td>{$sv['ngaysinh_sv']}</td>



				<td>{$sv['ma_lopmon']}</td>
			</tr>
			{/foreach}
        </tbody>
		</table>
		</div>
		</div>
		
		</div>
   	 </form>

	
	<!-- End main content -->
</div>